package Test;

import java.util.ArrayList;

import org.junit.Test;

import DBLayer.DBSupervisor;
import ModelLayer.Supervisor;

public class TestDBSupervisor
{
	private DBSupervisor dbsu = new DBSupervisor();
	private ArrayList<Supervisor> sulist = dbsu.getAllSupervisors(false);

	@Test
	public void testGetAllSupervisors() {
	    System.out.println("\nSupervisor size : " + sulist.size() + "\n");
	}

	@Test
	public void testSearchSupervisorID() {
		int id = 1;
		while(id <= sulist.size())
		{
			Supervisor c = dbsu.searchSupervisorID(id, false);
			System.out.println("SupervisorID    : " + c.getSupervisorID());
			System.out.println("Company         : " + c.getCompany());
			System.out.println("GrownupID       : " + c.getGrownupID());
			System.out.println("-------------------------");
			id++;
		}
	}
/*
	@Test
	public void testInsertSupervisor() {
		fail("Not yet implemented");
	}

	@Test
	public void testUpdateSupervisor() {
		fail("Not yet implemented");
	}

	@Test
	public void testDelete() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetAllSupervisors() {
		fail("Not yet implemented");
	}
*/
}
